package cn.nai.DemoRan.demo06;

public class Print_T {
    public static void printFile(Printer p,String file) {
    p.print_file(file);
    }

    public static void main(String[] args) {
        Printer c1 =new ColorPrinter("惠普");
        printFile(c1,"简历");
        Printer b1 = new BlackPrinter("佳能");
        printFile(b1,"简历");
    }
}
